import request from '@/utils/request'

// 查询合同报销列表
export function listClaim(query) {
  return request({
    url: '/project/claim/list',
    method: 'get',
    params: query
  })
}

// 查询合同报销详细
export function getClaim(claimId) {
  return request({
    url: '/project/claim/' + claimId,
    method: 'get'
  })
}

// 新增合同报销
export function addClaim(data) {
  return request({
    url: '/project/claim',
    method: 'post',
    data: data
  })
}

// 修改合同报销
export function updateClaim(data) {
  return request({
    url: '/project/claim',
    method: 'put',
    data: data
  })
}

// 删除合同报销
export function delClaim(claimId) {
  return request({
    url: '/project/claim/' + claimId,
    method: 'delete'
  })
}
